import request from '@/utils/request'

export function createUser(user) {
  return request({
    url: '/admin/sysUser/createUser',
    method: 'post',
    data: user
  })
}

export function findUser(param) {
  return request({
    url: '/admin/sysUser/findUser',
    method: 'post',
    data: param
  })
}

export function updateUser(user) {
  return request({
    url: '/admin/sysUser/updateUser',
    method: 'post',
    data: user
  })
}

export function deleteUser(param) {
  return request({
    url: '/admin/sysUser/deleteUser',
    method: 'post',
    data: param
  })
}

export function createOrUpdateIssuedInfo(data) {
  return request({
    url: '/oauth/supplementUserManager',
    method: 'post',
    data: data
  })
}

export function findIssuedInfo() {
  return request({
    url: '/oauth/selectManager',
    method: 'get'
  })
}

export function updateBaseInfo(data) {
  return request({
    url: '/oauth/updateEssentialInformation',
    method: 'post',
    data: data
  })
}

export function findIssuedBoolean(){
  return request({
    url: '/oauth/isSupplementUserManager',
    method: 'post'
  })
}

